package com.tuanzi.loan.vo.response.galaxycard;

import com.tuanzi.loan.core.vo.IdentityResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Objects;

/**
 * 银河黑卡用户权益 SearchResponse
 * @author JinRuiyang 2018/1/9 14:49:44
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GalaxyCardUserPrivilegeSearchResponse extends IdentityResponse {

    // 用户权益主键
    private Long pk;

    // 卡类型
    private String cardType;

    // 黑卡卡号
    private String cardNo;

    // 手机号
    private String phoneNumber;

    // 姓名
    private String name;

    // 用户权益状态值
    private Integer status;

    // 用户权益状态
    private String statusStr;

    // 权益id
    private Long privilegeId;

    // 权益
    private String privilege;

    // 快递信息id
    private Long expressId;

    // 权益编码 code
    private String code;

    // 业务id
    private Long businessId;


    public Boolean canShowCDKey(){
        return Objects.nonNull(this.businessId) && "activation-code".equals(this.code);
    }
}
